MacPing accepts three AppleScript commands, allowing you to invoke MacPing from other programs running on your Macintosh.
The following explanations briefly describe the AppleScript command and the definition, as shown in the MacPing AppleScript dictionary.
TestZone: Test an AppleTalk zone
TestZone string -- zone name
MacPing will test all networks contained in the specified zone. This command is equivalent to the Test Zone menu command.
Example:
tell MacPing to testzone ΓÇ£Research and DevelopmentΓÇ¥
TestIP: Test a single IP address or a range of addresses
TestIP string -- an IP address or host name
[to string] -- end of range
[include named/active/all] -- search option
MacPing will test an IP host or range of hosts. This command is equivalent to the Test IP menu command.
Examples:
tell MacPing to testIP ΓÇ£foo1.bar.comΓÇ¥
tell MacPing to testIP ΓÇ£foo1.bar.comΓÇ¥ to ΓÇ£foo2.bar.comΓÇ¥
tell MacPing to testIP ΓÇ£foo1.bar.comΓÇ¥ to ΓÇ£foo2.bar.comΓÇ¥ include named
TestNet: Test AppleTalk network
TestNet integer -- network number
[to integer] -- high end of range
MacPing will test an AppleTalk network or range of networks. This command is equivalent to the Test Network menu command. The network numbers are passed as AppleScript integers; they must be typed as decimal numbers.